INCLUDE_DIR=../ext/include
LIBS_DIR=../ext/libs
LD_FLAGS=-lgtest -lgtest_main -lpthread
FLAGS=-g

all: log.o
	g++ ${FLAGS} test_log.cpp ../log.o -o test -I${INCLUDE_DIR} -L${LIBS_DIR} ${LD_FLAGS}
	./test

log.o: ../log.cpp ../log.h
	g++ -c ../log.cpp -o ../log.o

.PHONY: clean

clean:
	rm -f test
	rm -f ../log.o
